import math


num = int(input())
print(math.factorial(num))
# print(is_palindrome(num))
